package chapter_5;

public abstract class People {
    public String name ="人";
    public int age;
    public int sex;

    public People() {
        System.out.println(name);
        System.out.println("people");
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public int getSex() {
        return sex;
    }
    public void setSex(int sex) {
        this.sex = sex;
    }
    public abstract String toString();
}
